package com.dwxt.cdms.controller;

import com.alibaba.fastjson.JSONObject;
import com.dwxt.cdms.service.WatchService;
import com.dwxt.cdms.service.WatchTwoService;
import com.dwxt.common.base.BaseResult;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

@RequestMapping("/cdms/watch")
@RestController
@Slf4j
public class WatchController {

    @Autowired
    private WatchTwoService watchTwoService;

    @RequestMapping("/receiveData")
    public BaseResult receiveData( @RequestBody Object object) {

        watchTwoService.receiveData(object);
        return BaseResult.ok();
    }

}
